/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.asset.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fuyao.cloud.common.core.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 合同管理
 *
 * @author liyue
 * @date 2021-11-18 18:45:12
 */
@Data
@TableName("fy_asset_contract")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "合同管理")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AssetContract extends BaseEntity<AssetContract> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一编码（用于关联附件）
     */
    @ApiModelProperty(value="唯一编码（用于关联附件）")
    private String unid;

    /**
     * 预算ID
     */
    @ApiModelProperty(value="预算ID")
    private Long budgetId;

    /**
     * 预算编号
     */
    @ApiModelProperty(value="预算编号")
    private String budgetNumber;

    /**
     * 状态：0：草稿，1：审批中， 3：已归档  4：合同失效 5：合同作废
     */
    @ApiModelProperty(value="状态：0：草稿，1：审批中， 3：已归档  4：合同失效 5：合同作废")
    private String status;

    /**
     * 类型（CONTRACT：合同、BILL：发票）
     */
    @ApiModelProperty(value="类型（CONTRACT：合同、BILL：发票）")
    private String type;

    /**
     * 名称
     */
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 合同类型（ASSET：资产合同、HOUSE：房屋）
     */
    @ApiModelProperty(value="合同类型（ASSET：资产合同、HOUSE：房屋）")
    private String contractType;

    /**
     * 编号（编号用户填了就按他的不填就自增长）
     */
    @ApiModelProperty(value="编号（编号用户填了就按他的不填就自增长）")
    private String contractId;

    /**
     * 签订地点
     */
    @ApiModelProperty(value="签订地点")
    private String contractSignplace;

    /**
     * 签订时间
     */
    @ApiModelProperty(value="签订时间")
    private LocalDate contractSigndate;

    /**
     * 生效时间
     */
    @ApiModelProperty(value="生效时间")
    private LocalDate effectiveDate;

    /**
     * 结束时间
     */
    @ApiModelProperty(value="结束时间")
    private LocalDate expirationDate;

    /**
     * 条款
     */
    @ApiModelProperty(value="条款")
    private String terms;

    /**
     * 金额
     */
    @ApiModelProperty(value="金额")
    private BigDecimal amount;

    /**
     * 签订人员ID
     */
    @ApiModelProperty(value="签订人员ID")
    private Long responsemanId;

    /**
     * 签订人员名称
     */
    @ApiModelProperty(value="签订人员名称")
    private String responsemanName;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 供应商ID
     */
    @ApiModelProperty(value="供应商ID")
    private Long supplierId;

    /**
     * 供应商名称
     */
    @ApiModelProperty(value="供应商名称")
    private String supplierName;

	/**
	 * 年份
	 */
	@ApiModelProperty(value="年份")
	private Integer year;

	/**
	 * 月份
	 */
	@ApiModelProperty(value="月份")
	private Integer month;

}
